﻿package mortal.game.view.copy.groupCopy.view
{
    import com.mui.controls.*;
    import com.mui.core.*;
    import mortal.common.global.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class NumberBox extends GSprite
    {
        protected var _numBg:GBitmap;
        protected var _leftEnterNum:GTextFiled;

        public function NumberBox()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            var _loc_1:Boolean = false;
            this.mouseEnabled = false;
            this.mouseChildren = _loc_1;
            this._numBg = GlobalClass.getBitmap(ImagesConst.NumberBg);
            this.addChild(this._numBg);
            this._leftEnterNum = UIFactory.gTextField("", 2, 1, 20, 20, this, GlobalStyle.textFormatBai.center());
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            this._leftEnterNum.dispose(param1);
            this._leftEnterNum = null;
            this._numBg.dispose(param1);
            this._numBg = null;
            super.disposeImpl(param1);
            return;
        }// end function

        public function set text(param1:String) : void
        {
            this._leftEnterNum.text = param1.toString();
            return;
        }// end function

    }
}
